package com.ruoyi.wechat.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品订单管理对象 c_order
 * 
 * @author ruoyi
 * @date 2024-12-29
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单id */
    private String orderId;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 营地id */
    @Excel(name = "营地id")
    private String campId;

    /** 总计 */
    @Excel(name = "总计")
    private BigDecimal total;

    /** 租赁时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "租赁时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 二维码 */
    @Excel(name = "二维码")
    private String qrCode;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    @ApiModelProperty(value = "订单详情")
    private List<OrderDetail> orderDetailList;

    public List<OrderDetail> getOrderDetailList() {
        return orderDetailList;
    }

    public void setOrderDetailList(List<OrderDetail> orderDetailList) {
        this.orderDetailList = orderDetailList;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setCampId(String campId) 
    {
        this.campId = campId;
    }

    public String getCampId() 
    {
        return campId;
    }
    public void setTotal(BigDecimal total) 
    {
        this.total = total;
    }

    public BigDecimal getTotal() 
    {
        return total;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setQrCode(String qrCode) 
    {
        this.qrCode = qrCode;
    }

    public String getQrCode() 
    {
        return qrCode;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("userId", getUserId())
            .append("campId", getCampId())
            .append("total", getTotal())
            .append("orderTime", getOrderTime())
            .append("qrCode", getQrCode())
            .append("status", getStatus())
            .toString();
    }
}
